/**
 * 用于存储器中储存token的key
 */
export const TOKEN_KEY = 'TOKEN_KEY'
/**
 * 用于存储器中储存refresh_token的key
 */
export const REFRESH_TOKEN_KEY = 'REFRESH_TOKEN_KEY'
/**
 * token的有效期：1周
 */
export const REFRESH_TOKEN_EXPIRY = 7 * 24 * 60 * 60 * 1000

export const STORAGE_OPTIONS = {
  namespace: 'user__',
  name: 'ls',
  // local(长期有效) | session(关闭窗口失效)
  storage: 'local'
}

export const LOCAL_OPTIONS = {
  name: 'local',
  // local(长期有效) | session(关闭窗口失效)
  storage: 'local'
}

export const SESSION_OPTIONS = {
  name: 'session',
  // local(长期有效) | session(关闭窗口失效)
  storage: 'session'
}
